package com.example.android.ui.me.user;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;

import androidx.navigation.Navigation;

import com.example.android.R;
import com.example.android.base.BaseFragment2;
import com.google.android.material.snackbar.Snackbar;

public class FindPasswordFragment extends BaseFragment2 {

    private EditText editText;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment_find_password, container, false);

        editText = root.findViewById(R.id.editText);
        Button button = root.findViewById(R.id.button);
        button.setOnClickListener(this::resetPasswordByEmail);

        return root;
    }

    /**
     * 邮箱重置密码
     */
    private void resetPasswordByEmail(View view) {
        String email = editText.getText().toString();
    }
}